const express = require('express')
const router = express.Router()

// 导入控制层
const CostController = require('../controllers/costController')
// 表单验证插件
const { body, query } = require("express-validator")
router.post('/add',CostController.add)
router.get('/list',CostController.list)
router.get('/del_f',CostController.del_f)
router.get('/del_t',CostController.del_t)
router.get('/get',CostController.get)
router.post('/set',CostController.set)

module.exports = router